<%@ page language="java" import="java.util.*,com.ccl.impl.*,com.ccl.model.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'aa.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <%
      String username = (String)session.getAttribute("username1");
      String password = (String)session.getAttribute("password1");
      if(username == null){
      session.setAttribute("kk", "请先登入");
      response.sendRedirect("index.jsp");
      }
        UserDaoimpl dao = new UserDaoimpl();
		List<User> list = dao.userName();
%>
    <%   for(User p:list){  %> 
		<%	if(username.equals(p.getUsername())&&password.equals(p.getPassword()) ){
        %>
<div class="div4">
    <form action="UpdateServel" method="post">  
    <input type="hidden" name="userid" value="<%=p.getUserid()%>">   
   用户名：<input type="text" name="username" id="username" height="15px"><br><br>
    密码：  <input type="password" name="password" id="password"><br><br> 
    性别：  <select name="sex" id="sex">   
        <option value="">--请选择--</option>
        <option value="男">男</option>   
        <option value="女">女</option>                 
       </select>&nbsp;&nbsp;  
  QQ：   <input type="text" name="qq" id="qq"><br><br>
    年龄： <input type="text" name="age" id="age"><br><br>
  Email： <input type=text name="email" id="email"><br><br>
   <input type="submit" name="submit" value="信息修改">
 </form>
</div>
  				
 <% }
 } %>
  </body>
</html>
